package com.healthsystem.portplay.controller;


import com.healthsystem.portplay.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * RESTf-ul Web 服务的登录控制器
 */
@RestController
public class UserInfoController {
    private final UserDao userDao;
    @Autowired
    public UserInfoController(UserDao userDao){this.userDao=userDao;}
    // 获取用户信息的控制器

    @GetMapping("/UserInfo")
  public List<Map<String, Object>> GetUserInfo(){
        return userDao.GetUserInfo();
    }




}
